import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';

import { LoginComponent } from '../components/login/login';
import { RegisterComponent } from '../components/register/register';


const routes: Routes = [
     { path: 'login', component: LoginComponent, outlet: 'auth' },
     { path: 'register', component: RegisterComponent, outlet: 'auth' }
];

@NgModule({
    imports: [ RouterModule.forChild(routes) ],
    exports: [ RouterModule ]
})
export class AuthRoutingModule {}
